package com.zdb.demo.design.pattern.structural.proxy.staticproxy;

import com.zdb.demo.design.pattern.structural.proxy.Order;
import org.aspectj.weaver.ast.Or;

public class Test {

    public static void main(String[] args) {
        Order order = new Order(1);
        OrderServiceStaticProxy orderServiceStaticProxy = new OrderServiceStaticProxy();
        orderServiceStaticProxy.saveOrder(order);

        order.setId(2);
        orderServiceStaticProxy.saveOrder(order);
    }
}
